import request from '@/utils/request'

// 查询车辆标记列表
export function listVip(query) {
  return request({
    url: '/control/vip/list',
    method: 'get',
    params: query
  })
}

// 查询车辆标记详细
export function getVip(id) {
  return request({
    url: '/control/vip/' + id,
    method: 'get'
  })
}

// 新增车辆标记
export function addVip(data) {
  return request({
    url: '/control/vip',
    method: 'post',
    data: data
  })
}

// 修改车辆标记
export function updateVip(data) {
  return request({
    url: '/control/vip',
    method: 'put',
    data: data
  })
}

// 删除车辆标记
export function delVip(id) {
  return request({
    url: '/control/vip/' + id,
    method: 'delete'
  })
}
